package com.itheima.mapper;

import com.itheima.domain.ClassQueryParam;
import com.itheima.domain.pojo.Clazz;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClassMapper {

    List<Clazz> getAll();

    void insertClass(Clazz clazz);

    void deleteById(Integer  id);

    Clazz getByIdStudent(Integer id);


    void updateById(Clazz clazz);

    Long getTotal();

    List<Clazz> getClazzs(ClassQueryParam c);

//    List<Clazz> getRows(Integer start, Integer pageSize);

}
